package com.bw.goods.mvvm.model;

import com.bw.goods.mvvm.model.entity.AddShopEntity;
import com.bw.goods.mvvm.model.entity.CategoryrightEntity;
import com.bw.goods.mvvm.model.entity.CateGoryliftEntity;
import com.bw.goods.mvvm.model.entity.GoodDetailEntity;
import com.bw.goods.mvvm.model.entity.HomeGoodsEntity;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;

public
/**
 * @author Lishaohe
 * @description:
 * @date :2021/10/14 0014 下午 4:13
 *
 */
interface Api {
    @POST("goods/getGoodsList")
    Observable<HomeGoodsEntity> requestHomeGoods(@Body RequestBody body);
    @POST("category/getCategory")
    Observable<CateGoryliftEntity> requestCateGorylift(@Body RequestBody body);
    @POST("category/getCategory")
    Observable<CategoryrightEntity> requestCateGory(@Body RequestBody body);
    @POST("goods/getGoodsDetail")
    Observable<GoodDetailEntity> requestGoodDetail(@Body RequestBody body);
    @POST("cart/add")
    Observable<AddShopEntity> requestGoodcart(@Body RequestBody body);
}
